package com.demo.dao.impl;

import com.demo.dao.UserDao;
import com.demo.pojo.User;
import org.springframework.stereotype.Component;

//@Component("userDao")
public class UserDaoImpl implements UserDao {
    @Override
    public void save(User user) {
        System.out.println("保存用户信息到数据库");
        System.out.println("已配置的用户信息如下：");
        System.out.println("\t用户名为：" + user.getUserName());
        System.out.println("\t年龄为：" + user.getAge());
        System.out.println("\t邮箱为：" + user.getEmail());
}

//    @Override
    public void saveUser(User user) {

    }
}
